package iip

type Config struct {
    RPCAddr string `ini:"rpc_addr" comment:"rpc地址"`
    RPCPort int    `ini:"rpc_port" comment:"rpc端口"`

    CA   string `ini:"ca" comment:"ca证书"`
    Cert string `ini:"cert" comment:"cert证书"`
    Key  string `ini:"key" comment:"key密钥"`
}

func DefaultConfig() *Config {
    return &Config{
        RPCAddr: "0.0.0.0",
        RPCPort: 3010,

        CA:   "conf/tls/ca_cert.txt",
        Cert: "conf/tls/cert.txt",
        Key:  "conf/tls/key.txt",
    }
}
